package com.bdq.common.utils;

import com.bdq.common.config.base.StaticDomainConfig;
import com.bdq.common.enums.BaseConfigEnum;

/**
 * @author malei
 * @date 2024-05-04 10:53
 */
public class StaticFileUtil {

    public static String domainConcat(String filePath) {
        return BaseConfigUtil.getConfig(BaseConfigEnum.STATIC_DOMAIN.getName(), StaticDomainConfig.class).getPath().concat(filePath);
    }

    public static String domainCut(String filePath) {
        return filePath.replace(BaseConfigUtil.getConfig(BaseConfigEnum.STATIC_DOMAIN.getName(), StaticDomainConfig.class).getPath(), "");
    }
}
